
interface UserInfo {
    name: string,
    age: number
}

interface Option {
    type: string,
    id: string
}
export const login = (option: Option|{}, passwd: number): UserInfo => {
    const result: UserInfo = {
        name: '张三',
        age: 25
    }
    return result
}